package com.gitee.huanminabc.db_freedom.segments;


import com.gitee.huanminabc.db_freedom.utils.SqlFunction;

/**
 * 关系实现类
 * @param <T>
 * @param <Children>
 */
public abstract class SqlRelationImplSegments<T, Children extends SqlFunImplSegments<T, Children>>    extends SqlFunImplSegments<T, Children> implements SqlRelationSegments<Children, T, SqlFunction<T, ?>> {
    public SqlRelationImplSegments() {
    }
    public SqlRelationImplSegments(Class<?> entityClass, com.gitee.huanminabc.db_freedom.wrapper.SQL sql) {
        super(entityClass, sql);
    }

    @Override
    public Children AND() {
        SQL().append(" AND ");
        return typedThis;
    }

    @Override
    public Children OR() {
        SQL().append(" OR ");
        return typedThis;
    }
}
